package com.lx.blogflux.dao;

import com.lx.blogflux.entity.Article;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;

@Repository
public interface ArticleDao extends R2dbcRepository<Article, Long> {

    // title = ?
    Flux<Article> findByTitle(String title);

    // title like ?
    Flux<Article> findByTitleLike(String title);
}
